/**
 * Project name : sklay-core
 * File name : StaticResourceMappingManager.java
 * Package name : com.sklay.core.io
 * Date : 2013-11-27
 * Copyright : 2013 , sklay.COM All Rights Reserved
 * Author : 1988fuyu@163.com
 */
package com.hoperun.framework.io;

import java.util.List;

import org.springframework.core.io.Resource;
import org.springframework.web.multipart.MultipartFile;

import com.hoperun.framework.models.FileInfo;

public interface StaticResourceMappingManager {

	String getUploadPath();

	String getDowloadRealPath();

	List<String> uploadWorkOrderRealPath(String owner, List<String> imageBase64);

	List<FileInfo> uploadWorkOrderRealPath(String owner, String transferId,
			List<MultipartFile> mFiles);

	FileInfo uploadApkRealPath(MultipartFile mFile);

	Resource getDowloadRealFile(String path);

	String getHttpPathPrefix();

	// use when upload
	Resource getRealPathByBizAndOwner(String biz, String owner);

	// use when view
	String getHttpPathByBizAndOwner(String biz, String owner);

	Resource getResourceByPath(String path);
}
